<?php
/**
 * Created by PhpStorm.
 * User: chang
 * Date: 2016/12/28
 * Time: 上午9:48
 */

namespace Admin\Controller;


use Common\Base\BaseController;

class AdminSessionBaseController extends BaseController
{
    public $user_id = null;

    function __construct()
    {
        parent::__construct();
        if (!session('admin_login_info')) {
            $this->ajaxReturnWrap(null, '-999', '页面过期');
        }

        $this->user_id = session('admin_login_info')['id'];
    }
}